<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人中心</title>
    <jsp:include page="css.jsp"/>
    <jsp:include page="js.jsp"/>
</head>
<body onload="loadUserInfo()">
<div class="container">
    <div class="background"></div>

    <!-- 用户信息 -->
    <div class="profile-section">
        <img src="static/wechat/center/img/avatar.png" class="avatar" alt="头像" id="userAvatar">
        <div class="username" id="userName"></div>
        <div class="user-level" id="userNickName"></div>
    </div>

    <!-- 功能模块 -->
    <div class="modules-grid">
        <div class="module-item" onclick="toPage(1)" style="display: none;" id="userManage">
            <img src="static/wechat/center/img/icon-users.svg" class="module-icon" alt="用户管理">
            <div class="module-title">用户管理</div>
        </div>
        <div class="module-item" onclick="toPage(2)" style="display: none;" id="deviceManage">
            <img src="static/wechat/center/img/icon-devices.svg" class="module-icon" alt="设备管理">
            <div class="module-title">设备管理</div>
        </div>
        <div class="module-item" onclick="toPage(3)">
            <img src="static/wechat/center/img/icon-companys.svg" class="module-icon" alt="公司管理">
            <div class="module-title">公司管理</div>
        </div>
<%--        <div class="module-item" onclick="toPage(4)">--%>
<%--            <img src="static/wechat/center/img/icon-setting.svg" class="module-icon" alt="系统设置">--%>
<%--            <div class="module-title">系统设置</div>--%>
<%--        </div>--%>
        <div class="module-item" onclick="toPage(5)">
            <img src="static/wechat/center/img/icon-info.svg" class="module-icon" alt="个人信息">
            <div class="module-title">个人信息</div>
        </div>
<%--        <div class="module-item" onclick="toPage(6)">--%>
<%--            <img src="static/wechat/center/img/icon-service.svg" class="module-icon" alt="联系我们">--%>
<%--            <div class="module-title">联系我们</div>--%>
<%--        </div>--%>
        <div class="module-item" onclick="toPage(7)" style="display: none;" id="invitationManage">
            <img src="static/wechat/center/img/icon-invitation.svg" class="module-icon" alt="邀请加入">
            <div class="module-title">邀请加入</div>
        </div>
    </div>
</div>

<input type="hidden" id="hiddenUserId" value="${wxUserId}"/>
</body>
</html>
<script src="static/wechat/center/js/index.js"></script>